package com.yinNuo.collectWool.mobileApi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 羊毛用户表(UserTask)实体类
 *
 * @author makejava
 * @since 2021-12-12 11:10:52
 */
public class UserTask extends Model<UserTask> implements Serializable {
    private static final long serialVersionUID = -20796519684293548L;
    /**
     * 主键用户id(做羊毛任务的用户)
     */
    @TableId(value = "user_id",type = IdType.AUTO)
    private Integer userId;
    /**
     * 羊毛任务的用户名
     */
    private String userName;


    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.userId;
    }

    @Override
    public String toString() {
        return "UserTask{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                '}';
    }
}

